package com.wenlong.train_ticketing_system_springboot.querymodule.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wenlong.train_ticketing_system_springboot.querymodule.pojo.Order;
import com.wenlong.train_ticketing_system_springboot.querymodule.service.OrderService;
import com.wenlong.train_ticketing_system_springboot.querymodule.mapper.OrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order>
    implements OrderService{
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public List<Order> getAllOrders() {
        return orderMapper.selectList(null);
    }
}




